package com.dtkeys.licenses.clients;

import com.dtkeys.licenses.model.Organization;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by Administrator on 2020/5/20.
 */

@FeignClient("organizationservice")
public interface OrganizationFeignClient {

    @RequestMapping(value = "/v1/organizations/{organizationId}",
    method = RequestMethod.GET, consumes = "application/json")
    Organization getOrganization(@PathVariable("organizationId") String organizationId);
}
